package knowlodges.JVMkuang;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Clarence
 * @Date: 2022/7/26 22:41
 */
public class OOMTest {
//    -Xms1m -Xmx1m -XX:+PrintGCDetails
    public static void main(String[] args) {
        List<byte[]> list = new ArrayList<>();
        while (true) {
            list.add(new byte[1024 * 1024]);
        }
    }
}
